import Vue from 'vue'
import VueRouter from 'vue-router'

import aa from '@/components/tabbar/aa.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/aa'
  },
  {
    path: '/aa',
    name: 'aa',
    component: aa
  },
  {
    path: '/bb',
    name: 'bb',
    component: () => import('@/components/tabbar/bb.vue')
  },
  {
    path: '/cc',
    name: 'cc',
    component: () => import('@/components/tabbar/cc.vue')
  },
  {
    path: '/dd',
    name: 'dd',
    component: () => import('@/components/tabbar/dd.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
